﻿<!DOCTYPE HTML>
<html lang="zh">
<head>
<title>是否传址 - 语法 &amp; 使用 | AutoHotkey v2</title>
<meta name="description" content="The 是否传址 function returns a non-zero number 如果 the specified ByRef parameter was supplied with a variable." />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
<script type="text/javascript">$(function(){0<=window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")&&CaoNiMaDeUc()})</script>
</head>
<body>

<h1>是否传址</h1>

<p>如果指定的 <a href="../Functions.htm#ByRef">ByRef 参数</a>作为变量提供, 则返回一个非零数字.</p>

<pre class="Syntax">是否传址 := <span class="func">是否传址</span>(ParameterVar)</pre>
<h2 id="Parameters">参数</h2>
<dl>

  <dt>ParameterVar</dt>
  <dd>
    <p>类型: <a href="../Concepts.htm#variables">变量</a></p>
    <p>变量的引用. 例如: <code>是否传址(MyParameter)</code>.</p>
  </dd>

</dl>

<h2 id="Return_Value">返回值</h2>
<p>类型: <a href="../Concepts.htm#boolean">整数(布尔值)</a></p>
<p>如果 <em>ParameterVar</em> 是 <a href="../Functions.htm#ByRef">ByRef 参数</a>, 且调用者传递了这个参数, 则函数返回 1(true); 否则当 <em>ParameterVar</em> 为其他类型参数时返回 0(false).</p>

<h2 id="Related">相关</h2>
<p><a href="../Functions.htm#ByRef">ByRef 参数</a></p>
<h2 id="Examples">示例</h2>
<div class="ex" id="ExBasic">
<p><a href="#ExBasic">#1</a></p>
<pre>信息框 Function(MyVar)

Function(ByRef Param)
{
    返回 是否传址(Param)
}</pre>
</div>

</body>
</html>